package top.shiyiri.webfluxdemo1.service;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import top.shiyiri.webfluxdemo1.bean.User;

/**
 * @author Aunean
 * @date 2022/2/19 22:08
 */
//用户操作接口
public interface UserService {

    //根据id查询用户
    Mono<User> getUserById(int id);

    //查询所有用户
    Flux<User> getAllUsers();

    //添加用户
    Mono<Void> saveUserInfo(Mono<User> user);
}
